
//               File: SimpleDataAdapterFactory
//        Description: No description for object
//             Author: DeKlarit - Language C# - Generator Version 10_1_3-31907 - Specifier Version 10_
//       Program type: Callable routine
//          Main DBMS: Microsoft SqlServer

namespace DeklaritModel {
   using System.Data;
   using Deklarit.Data;
   using Deklarit.Configuration;
   using Microsoft.Practices.EnterpriseLibrary.PolicyInjection;
   public partial class SimpleDataAdapterFactory : IDataAdapterFactory, IConnectedDataAdapterFactory
   {
      public virtual IProductDataAdapter GetProductDataAdapter( )
      {
         return PolicyInjection.Create<ProductDataAdapter, IProductDataAdapter>( ) ;
      }

      public virtual IPaisDataAdapter GetPaisDataAdapter( )
      {
         return PolicyInjection.Create<PaisDataAdapter, IPaisDataAdapter>( ) ;
      }

      public virtual IInvoiceDataAdapter GetInvoiceDataAdapter( )
      {
         return PolicyInjection.Create<InvoiceDataAdapter, IInvoiceDataAdapter>( ) ;
      }

      public virtual ICiudadDataAdapter GetCiudadDataAdapter( )
      {
         return PolicyInjection.Create<CiudadDataAdapter, ICiudadDataAdapter>( ) ;
      }

      public virtual IClienteDataAdapter GetClienteDataAdapter( )
      {
         return PolicyInjection.Create<ClienteDataAdapter, IClienteDataAdapter>( ) ;
      }

      public IDeklaritTransaction GetDeklaritTransaction( IsolationLevel level )
      {
         return new DeklaritTransaction( level) ;
      }

      public IDeklaritTransaction GetDeklaritTransaction( )
      {
         return new DeklaritTransaction( ) ;
      }

      public object EnterpriseLibraryConfigurationContext
      {
         get {
            return EnterpriseLibrary.Instance.ConfigurationContext ;
         }

         set {
            EnterpriseLibrary.Instance.ConfigurationContext = ((Microsoft.Practices.EnterpriseLibrary.Common.Configuration.IConfigurationSource)(value));
         }

      }

      public IDeklaritConfiguration IDeklaritConfiguration
      {
         get {
            return Configuration.Instance ;
         }

         set {
            Configuration.Instance = value ;
         }

      }

   }

}
